package com.zutassociation.system.service.impl;

import com.zutassociation.system.domain.Funds;
import com.zutassociation.system.mapper.FundsMapper;
import com.zutassociation.system.service.FundsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/13 21:18
 */
@Service
public class FundsServiceImpl implements FundsService {
    @Autowired
    private FundsMapper fundsMapper;

    @Override
    public Funds selectFundsById(Long fundsId) {
        return fundsMapper.selectFundsById(fundsId);
    }
    @Override
    public Funds selectTotalSum(Funds funds) {
        return fundsMapper.selectTotalSum(funds);
    }

    @Override
    public List<Funds> selectFundsList(Funds funds) {
        return fundsMapper.selectFundsList(funds);
    }

    @Override
    public int insertFunds(Funds funds) {
        return fundsMapper.insertFunds(funds);
    }

    @Override
    public int updateFunds(Funds funds) {
        return fundsMapper.updateFunds(funds);
    }

    @Override
    public int deleteFundsById(Long fundsId) {
        return fundsMapper.deleteFundsById(fundsId);
    }

    @Override
    public int deleteFundsByIds(Long[] fundsIds) {
        return fundsMapper.deleteFundsByIds(fundsIds);
    }
}
